import Vue from 'vue'
import App from './App'
import HttpRequest from './common/httpRequest'
import grade from "./common/grade"
import HttpCache from './common/cache'
import queue from './common/queue'
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
	

import loadMore from './components/uni-pro/load-more'
import orangeGoodsList from './components/uni-pro/orange-goods-list'
import orangeGoodsNewsList from './components/uni-pro/orange-goods-news-list'
import orangeGoodsCarg from './components/uni-pro/orange-goods-card'
import orangeHandpick from './components/uni-pro/orange-handpick'
import orangeMian from './components/uni-pro/orange-mian'
import orangeMians from './components/uni-pro/orange-mians'
import orangeNews from './components/uni-pro/orange-news'
import loading from './components/xuan-loading/xuan-loading'
import orangeGoodsCargHome from './components/uni-pro/orange-goods-card-home'
import orangeGoodsCargHomeTwo from './components/uni-pro/orange-goods-card-home-two'
import orangeGoodsCargHomeThree from './components/uni-pro/orange-goods-card-home-three'

import empty from './components/empty'
import api from './common/api/api.js' //api 接口
import tui from './common/tui.js' // 普通的快速工具类
import constant from './constant/constant.js' // 常量
     
    
import jdGoodsList from './components/uni-pro/jd-goods-list'

import 'js_sdk/ican-H5Api/ican-H5Api'
import wx from 'js_sdk/weixin'

Vue.config.productionTip = false;
Vue.prototype.$Request = HttpRequest;
Vue.prototype.$queue = queue;
Vue.prototype.tui = tui
Vue.prototype.api = api
Vue.prototype.constant = constant
Vue.prototype.$grade = grade

Vue.prototype.$wx = wx;

Vue.prototype.$Sysconf = HttpRequest.config;
Vue.prototype.$SysCache = HttpCache;


App.mpType = 'app';
Vue.component('mescroll-body', MescrollBody)
Vue.component('orange-news', orangeNews);
Vue.component('orange-handpick', orangeHandpick);
Vue.component('orange-mian', orangeMian);
Vue.component('orange-mians', orangeMians);
Vue.component('load-more', loadMore);
Vue.component('loading', loading);
Vue.component('empty', empty);
Vue.component('orange-goods-list', orangeGoodsList);
Vue.component('orange-goods-news-list', orangeGoodsNewsList);
Vue.component('orange-goods-card', orangeGoodsCarg);
Vue.component('orange-goods-card-home', orangeGoodsCargHome);
Vue.component('orange-goods-card-home-two', orangeGoodsCargHomeTwo);
Vue.component('orange-goods-card-home-three', orangeGoodsCargHomeThree);
Vue.component('jd-goods-list', jdGoodsList);

const app = new Vue({
    ...App
});
app.$mount();
